package com.taotao.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 后台管理页面
 * @author zhangxiaolin@zhonhajt.com
 * @Title:
 * @Package com.taotao.controller
 * @Description:
 * @date 2018/10/11 16:30
 */
@Controller
public class PageController {

    /**
     * 跳转首页
     * @return
     */
    @RequestMapping("/")
    public String index() {
        return "index";
    }

    /**
     * 跳转页面
     * @param page
     * @return
     */
    @RequestMapping("/{page}")
    public String toPage(@PathVariable String page) {
        return page;
    }
}
